package com.fr.http;

/**
*作者：furong
*日期：2016年11月2日
*时间：下午1:46:13
*/

import java.util.HashMap;
import java.util.Map;

//对接口进行测试
public class HttpsClientTest {
    private String url = "https://www.zhihu.com/topic";
    private String charset = "utf-8";
    private HttpsClientUtil httpClientUtil = null;

    public HttpsClientTest() {
        httpClientUtil = new HttpsClientUtil();
    }

    public void test() {
        String httpOrgCreateTest = url;
        Map<String, String> createMap = new HashMap<String, String>();
        // createMap.put("authuser", "*****");
        // createMap.put("authpass", "*****");
        // createMap.put("orgkey", "****");
        // createMap.put("orgname", "****");
        // String httpOrgCreateTestRtn = httpClientUtil.doPost(httpOrgCreateTest, createMap, charset);
        String httpOrgCreateTestRtn = httpClientUtil.doGet(httpOrgCreateTest, charset);
        System.out.println("result:" + httpOrgCreateTestRtn);
    }

    public static void main(String[] args) {
        HttpsClientTest main = new HttpsClientTest();
        main.test();
    }
}